#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  property_dict.py
#       Author @  Huoty
#  Create date @  2016-08-11 10:56:00
#  Description @  
# *************************************************************

class Foo(object):
    def __init__(self, x, y):
        self.x = x
        self.y = y

    @property
    def hello(self):
        return "hello"

# Script starts from here

if __name__ == "__main__":
    f = Foo(1, 2)
    print f.__dict__
    print getattr(f, "hello")

